package cn.zjutleo.village_server.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author : Fu Lantian
 * @date : Created in 2021/11/17
 * @description: 需要鉴权注解
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresLogin {
    boolean required() default true;

    boolean requireSignNotice() default true;

    boolean requireSignContract() default false;

    boolean requireAuthenticated() default false;

    String[] requiresRoles() default {};
}
